package com.suyang.syt.service.interfaces;

import java.util.List;

import com.suyang.syt.model.UserMessage;
import com.suyang.syt.model.dto.AjaxObj;
import com.suyang.syt.model.dto.MessageDTO;
import com.suyang.syt.model.dto.PagerEasyUI;

public interface UserMessageService {

	/**
	 * 根据组ID删除一个用户消息
	 * 
	 * @param id
	 * @throws Exception
	 */
	public AjaxObj delete(String ids, long uid) throws Exception;

	/** 把用户信息标记为已读 ****/
	AjaxObj update(long uid, String ids) throws Exception;

	public PagerEasyUI<MessageDTO> listByEasyUI(int page, int rows, String sort, String order, String createDate1, String createDate2, UserMessage userMessage) throws Exception;

	/***** 根据用户uid查询用户消息 ********/
	public PagerEasyUI<MessageDTO> listByEasyUI(int page, int rows, String sort, String order, String createDate1, String createDate2, long uid, String status) throws Exception;

	List<UserMessage> list(String ids, long uid) throws Exception;
}
